package com.atguigu.service;

import com.atguigu.bean.Teacher;
import com.atguigu.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 伟哥
 * @date 2021-06-15 11:11
 */
@Service
public class TeacherService {

    @Autowired
    private TeacherDao teacherDao;

    public Teacher getTeacher(Integer id) {
        Teacher teacherById = teacherDao.getTeacherById(id);
        return teacherById;
    }
}
